package edu.sctu.practice.class02.yangyuran.test06;

/**
 * Created by Administrator on 2015/10/11.
 */
public class Number01 {
    private String gender;

    public Number01() {
        this.gender = "男";
    }

    public void getGender() {
        System.out.println("性别为：" + gender);
    }

    public void setGender(String gender) {

        this.gender = gender;
        System.out.println("更改后的性别为：" + this.gender);
    }

    public static void main(String[] args) {

        Number01 number01 = new Number01();
        number01.getGender();
        number01.setGender("女");
    }
}
